package cn.tedu.cake.mapper;

import cn.tedu.cake.pojo.dto.CategoryDTO;
import cn.tedu.cake.pojo.entity.Category;
import org.springframework.stereotype.Repository;

import java.util.List;



public interface CategoryMapper {

    int insert(Category category);
    int insertBatch(List<Category> categories);


    int countByName(String name);

//    List<Category> select();


    int deleteById(int id);


    int update(Category category);
}
